// pages/coupon/coupon.js
const app = getApp();
Page({
  /**
   * 页面的初始数据
   */
  data: {
    statusBarHeight: app.globalData.statusBarHeight,
    fullHeight: app.globalData.fullcontain,
    navmess:{
      navtitle: "优惠券",
      backhide: 0,
      topheight: 1
    },
    couponlist: [
      {
        "couponBatchId": null,
        "useStores": "1",
        "useStoresName": "壹方城店",
        "batchNo": "MX0901",
        "photoUrl": "",
        "name": "新人专用10元现金优惠券新人专用10元现金优惠券",
        "description": "新人小程序购物或门店消费代替现金使用。",
        "couponNo": "00001Q000000091",
        "deadline": "2020-18-18",
        "useCards": "公主卡,女王卡,钻石卡",
        "couponType": "新人现金优惠券"
      },
      {
        "couponBatchId": null,
        "useStores": "1",
        "useStoresName": "全部",
        "batchNo": "MX0901",
        "photoUrl": "",
        "name": "新人专用10元现金优惠券新人专用10元现金优惠券",
        "description": "新人小程序购物或门店消费代替现金使用。",
        "couponNo": "00001Q000000091",
        "deadline": "2020-18-18",
        "useCards": "公主卡,女王卡,钻石卡",
        "couponType": "新人现金优惠券"
      }
    ]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})